package org.sgx.gwtsjcl.client;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Secure Hash Algorithm, 256 bits
 * 
 * @author sg
 * 
 */
public class HashSha256 extends JavaScriptObject {
	protected HashSha256() {
	}

	/**
	 * Hash a string or an array of words. 
	 * @param data the data to hash.
	 * @return The hash value, an array of 16 big-endian words.
	 */
	public native final BitArrayType hash(String data) /*-{
		return this.hash(data);
	}-*/;
	
	/**
	 * Hash a string or an array of words. 
	 * @param data the data to hash.
	 * @return The hash value, an array of 16 big-endian words.
	 */
	public native final BitArrayType hash(BitArrayType data) /*-{
		return this.hash(data);
	}-*/;
}
